#import "BWCrossStitchDrawTool.h"
#import "BWCrossStitchChangeList.h"

@implementation BWCrossStitchDrawTool

- (void) startDragAtRow: (int) row  
                 column: (int) column
                 thread: (BWThread *) thread
{
    [changeList addStitchWithThread: thread
                atRow: row
                column: column];

    [self invalidateRow: row  column: column];

} // handleMouseDown


- (void) continueDragAtRow: (int) row
                    column: (int) column
                    thread: (BWThread *) thread
{
    [changeList addStitchWithThread: thread
                atRow: row
                column: column];

    [self invalidateRow: row  column: column];

} // handleMouseDragged


- (NSString *) name
{
    return (@"Draw cross stitches");
} // name

@end // BWCrossStitchDrawTool

